﻿<%@ Page Title="" Language="C#" MasterPageFile="/DonViNganhPage/DonViNganhSt.Master" AutoEventWireup="true" CodeBehind="DonViNganhHomePage.aspx.cs" Inherits="HDVN5.DonViNganhPage.DonViNganhHomePage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../Scripts/jquery.1.9.js"></script>
    <script src="../Scripts/jquery-ui-1.10.2.custom.js"></script>
    <script src="../Scripts/jquery.ui.tooltip.js"></script>
         <script type="text/javascript">
             $(function () {

                 $('a#pop').live('click', function (e) {
                     e.preventDefault();
                     var page = $(this).attr("href")
                     var pagetitle = $(this).attr("title")
                     var $dialog = $('<div></div>')
                     .html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>')
                     .dialog({
                         autoOpen: false,
                         modal: true,
                         height: 500,
                         width: 500,
                         title: pagetitle,
                         buttons:{
                             Thoát: function () {
                                 $dialog.dialog("close");
                             }
                         }
                         
                     });
                     $dialog.dialog('open');
                 });

             });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
     <div id="personPopupContainer">

     </div>
    <div id="thongke">
        <table style="width:100%;border:0px none;">
            <tbody>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Họ Và Tên :</td>
                    <td><input type="text" id="HoVaTen" name="HoVaTen" class="input_search" /></td>
                    <td>Ngày Sinh :</td>
                    <td><input type="text" id="NgaySinh" name="NgaySinh"  class="input_search"  /></td>
                </tr>
                <tr>
                    <td>Năm nhập đoàn :</td>
                    <td><input type="text" id="NamVao" name="NamVao" class="input_search" /></td>
                    <td>Năm rời đoàn :</td>
                    <td><input type="text" id="NamRa" name="NamRa"  class="input_search"  /></td>
                </tr>
                <tr>
                    <td><asp:Button ID="TimKiem" runat="server" Text="Tìm kiếm" /></td>
                    <td><asp:Button ID="HuyTimKiem" runat="server" Text="Hủy tìm kiếm" /></td>
                    <td><input type="button" id="ThongKe" value="Thống kê" /></td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="thongtindoanpha" style="overflow:scroll;width:115%">
        <asp:GridView ID="DoanPha" runat="server" AutoGenerateColumns="False" CssClass="escout-table" Width="773px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
            <Columns>
                <asp:TemplateField HeaderText="Sửa">
                    <ItemTemplate>
                        <a href='/DonViNganhPage/DoanSinh/CapNhatThongTinDoanSinh.aspx?madoansinh=<%#Eval("MaDoanSinh") %>&&method=edit'rel='<%#Eval("MaDoanSinh")%>' ><%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>

                    <ItemStyle Width="10px" />

                </asp:TemplateField>
                <asp:TemplateField HeaderText="Họ Và Tên">
                    <ItemTemplate>
                        <a href='/Control/DoanSinhToolTip.aspx?ID=<%#Eval("MaDoanSinh") %>' class="popupDoanSinh" rel='<%#Eval("MaDoanSinh")%>' id='pop' title='Thông tin khác của Đoàn Sinh<%#Eval("HoVaTen") %>' ><%#Eval("HoVaTen") %></a>
                    </ItemTemplate>
                    <ItemStyle Width="300px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Giới tính">
                    <ItemTemplate>
                        <%#Eval("GioiTinh") %>
                    </ItemTemplate>
                    <ItemStyle Width="10px" />
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="Ngày Sinh">
                    <ItemTemplate>
                        <%#Eval("NgaySinh") %>
                    </ItemTemplate>
                     <ItemStyle Width="20px" />
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="Nơi Sinh">
                    <ItemTemplate>
                         <%#Eval("NoiSinh") %>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="Ngày tuyên hứa">
                    <ItemTemplate>
                         <%#Eval("NgayTuyenHua") %>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="Đơi vị tuyên hứa">
                    <ItemTemplate>
                         <%#Eval("NoiTuyenHua") %>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="Số điện thoại">
                    <ItemTemplate>
                         <%#Eval("SoDTNha") %>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </div>
</asp:Content>
